Significant Changes in the Past
In older versions, definition of terms were sometimes changed. Check the following for the compatibility of scripts if you have written your own scripts.
But you don’t need to consider the changes if you just use scripts included in QuoEdit’s archive. And scripts generated by recording your tasks have no problems of the compatibility because they never contain statements effected by the changes described bellow.
Definition of ‘length’ and ‘offset’ parameters of text class
Properties of text class ‘length’ and ‘offset’ was once redefined in version 0.5. If you write scripts and your scripts are intended to work also on Japanese, Chinese or Korean text, please once check “Length” and “Offset” in this guide.
Making document with initial data
The behavior was changed in version 0.65. Though it is not so significant change, there can be a problem of script compatibility.
make new document with data initialData
In this case, the process in the older versions was, first make a new document, then find out what is the data value and set the contents to the data. As a result, it was assumed that the contents of the new document was once modified, setting the contents was therefore undoable, and the caret came to the end position.
Now the process is, first determine what is the data value, then make new document and immediately set the contents to the data. And the behavior is now analogous to opening a stationery file. As a result, it is assumed that the contents of the new document is not modified, nothing is therefore undoable in this point, and the caret comes to the start position.
And as a result, if you are going to make a document at front with text from the current front document, now you can naturally write the statement like the following.
make new document with data selection of document 1
In older versions, you had to specify index 2 for the current front document because of the internal process.
Obsoleted a way to select a text object
To select a text object, the following way had been available in the older versions.
set selection to paragraph 1 of document 1
This way was obsoleted in version 0.7.2. So, always use the ‘select’ command to select an object. See also “Modifying the selection” in this guide for the detail.
Table of contents